home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / util / Timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.1 KB  |  47 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project:
  4.  
  5.     Objective-C interface file for the class time
  6.  
  7.     COPYRIGHT (C), 1995, Thomas Baier
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Date:                Rev:
  11.     1995-Aug-11            ___
  12.  
  13.  */
  14.  
  15. /*====================================================================
  16.                        Interface of class time                        
  17. ====================================================================*/
  18. #ifndef _TIMER_H_
  19. #define _TIMER_H_
  20.  
  21. #include <objc/Object.h>
  22. #include <sys/time.h>
  23.  
  24. @interface Timer : Object
  25. {
  26.   clock_t lastMeasure;
  27. }
  28.  
  29. /* -------------------------- Initialize -------------------------- */
  30. -init;
  31.  
  32. /* ----------------------------- Free ----------------------------- */
  33.  
  34. /* ----------- Methods for access to Instance Variables ----------- */
  35.  
  36. /* ------------------------ Public methods ------------------------ */
  37. -startTimer;
  38. -(clock_t) stopTimer;
  39. -(clock_t) stopTimerAndPrint: (char *) message;
  40.  
  41. /* ----------------------- Private methods ------------------------ */
  42.  
  43. /* ---------------------- Archiving methods ----------------------- */
  44.  
  45. @end
  46. #endif
  47.